// ------------------------------------------------------ Naming ------------------------------------------------------
Name SAAB J 21-A1
ShortName J_21-A1
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconj21a1
Model sweden.j21a1
Texture j21a1
//Third Person Camera Distance
HasGear True
CameraDistance 10.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 2.5
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2
TurnRightSpeed 2
//Pitch modifiers
LookUpSpeed 2
LookDownSpeed 2
//Roll modifiers
RollLeftSpeed 2
RollRightSpeed 2
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1
//Wheels
NumWheels 3
WheelPosition 0 12 -10 -40
WheelPosition 1 12 -10 40
WheelPosition 2 107 -10 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 23 -43 0 tail metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary None
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 1
ShootDelaySecondary 10
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary SemiAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 115 45 0 nose ADEN
ShootPointPrimary 102 37 -7 nose ADEN
ShootPointPrimary 102 33 -5 nose ADEN
ShootPointPrimary 102 37 7 nose ADEN
ShootPointPrimary 102 33 5 nose ADEN
ShootPointPrimary 46 31 -44 leftWing ADEN
ShootPointPrimary 46 31 44 rightWing ADEN
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 0
AllowAllAmmo True
AddAmmo zuni
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 5000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 48 36 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound propStart
StartSoundLength 20
PropSound propSound
PropSoundLength 30
ShootSoundPrimary PlaneShoot
ShootSoundSecondary bomb
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 metalCockpit
AddRecipeParts coreWheel 2 wheel
AddRecipeParts nose 1 metalNose
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts bay 1 bombBay
AddRecipeParts tail 1 metalTail
AddRecipeParts tailWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 6 green
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart nose 100 94 12 -10 58 40 20
SetupPart core 100 -14 12 -10 108 49 20
SetupPart tail 100 -158 12 -10 144 49 20
SetupPart tail 100 -134 50 -65 46 5 130
SetupPart tail 100 -158 56 -2 63 51 4
SetupPart leftWing 100 -21 33 -154 82 27 144
SetupPart leftWing 100 -20 17 -75 107 36 35
SetupPart rightWing 100 -21 33 10 82 27 144
SetupPart rightWing 100 -20 17 40 107 36 35
CollisionPoint 152 28 0 nose
CollisionPoint 117 28 0 nose
CollisionPoint 55 28 0 core
CollisionPoint -62 28 0 tail
CollisionPoint -125 83 0 tail
CollisionPoint 74 45 -58 leftWing
CollisionPoint 38 46 -75 leftWing
CollisionPoint 74 45 58 rightWing
CollisionPoint 38 46 75 rightWing
//Collision points for breaking wings etc. upon crashing

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 30